From: Peter Pentchev Date: Sun, 22 Aug 2021 11:52:18 +0000 (+0300) Subject: Check the correct value in a test. X-Git-Tag: archive/raspbian/1.2.1+ds1-1+rpi1^2~7^2~1^2~23^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a9ee6357a3cf1c1132219dc552f81213e10cff80;p=zchunk.git Check the correct value in a test. Spotted by: cppcheck --- diff --git a/test/read_single_chunk.c b/test/read_single_chunk.c index 3e83971..432cb5d 100644 --- a/test/read_single_chunk.c +++ b/test/read_single_chunk.c @@ -69,7 +69,7 @@ int main (int argc, char *argv[]) { exit(1); } zckChunk *chunk1 = zck_get_chunk(zck, 1); - if(chunk == NULL) { + if(chunk1 == NULL) { printf("%s", zck_get_error(zck)); zck_free(&zck); exit(1);